<template>
  <div>
    <h1>demo2</h1>
    <button @click="gotoTest1">切换页面test1</button>
  </div>
</template>

<script>
export default {
  data() {
    return {

    }
  },
  methods: {
    gotoTest1() {
      this.$router.push('/test1')
    }
  }
}
</script>

<style>

</style>